how to generate random numbers from a list in python